
add_library(glograph STATIC graph.c xmlparser.c getosm.c)
add_executable(test_graph test_graph.c)
add_executable(test_gpfl test_gpfl.c)

# XML2 library
find_package(LibXml2 REQUIRED)
include_directories(${LIBXML2_INCLUDE_DIR})
add_definitions(${LIBXML2_DEFINITIONS})

# libcurl
find_package(CURL REQUIRED)
include_directories(${CURL_INCLUDE_DIR})


target_link_libraries(glograph ${LIBXML2_LIBRARIES} ${CURL_LIBRARY} m cache_utils)
target_link_libraries(test_graph glograph)
target_link_libraries(test_gpfl glograph)

